/**
 * @description: 角色相关
 * @fileName: index
 * @author: 17076
 * @date: 2025/3/11-上午10:32
 * @version: V1.0.0
 **/
import request from '@/utils/request'
/** 查询剧本角色表 */
export function selectPlayRole(data) {
  return request({
    url: `/api/playRole/selectPlayRole?page=1&size=-1`,
    method: 'post',
    data
  })
}
/** 提取角色 */
export function getPlayRole(data) {
  return request({
    url: `/api/playDescInfo/getPlayRole`,
    method: 'post',
    data
  })
}
/** 新增剧本角色表 */
export function addPlayRole(data) {
  return request({
    url: `/api/playRole/addPlayRole`,
    method: 'post',
    data
  })
}
/** 修改剧本角色数据 */
export function updatePlayRole(data) {
  return request({
    url: `/api/playRole/updPlayRole`,
    method: 'post',
    data
  })
}
/** 查询单个角色的形象 */
export function selectByPlayRoleId(data) {
  return request({
    url: `/api/playRole/selectByPlayRoleId`,
    method: 'post',
    params: data
  })
}
/** 查询角色形象表 */
export function selectPlayRoleImage(data) {
  return request({
    url: `/api/playRole/selectPlayRoleImage`,
    method: 'post',
    data
  })
}
/** 查询已设置完成的角色形象 */
export function selectFinishedRole(data) {
  return request({
    url: `/api/playRole/selectFinishedRole`,
    method: 'post',
    params: data
  })
}
/** 查询剧本是否已设置完成全部的角色形象 */
export function selectIsFinishedRole(data) {
  return request({
    url: `/api/playRole/selectIsFinishedRole`,
    method: 'post',
    params: data
  })
}
/** 删除剧本中角色信息 */
export function deletePlayRoles(data) {
  return request({
    url: `/api/playRole/delPlayRole`,
    method: 'post',
    params: data
  })
}
